home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\INCLUDE\ALIAS.H < prev    next >
C/C++ Source or Header  |  1994-12-29  |  1KB  |  66 lines

  1. /*
  2.  * alias.h: header for alias.c 
  3.  *
  4.  * Written By Michael Sandrof
  5.  *
  6.  * Copyright(c) 1990 
  7.  *
  8.  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
  9.  *
  10.  * @(#)$Id: alias.h,v 1.5 1994/07/02 02:38:10 mrg Stab $
  11.  */
  12.  
  13. #ifndef _ALIAS_H_
  14. #define _ALIAS_H_
  15.  
  16. #define COMMAND_ALIAS 0
  17. #define VAR_ALIAS 1
  18.  
  19. #define LEFT_BRACE '{'
  20. #define RIGHT_BRACE '}'
  21. #define LEFT_BRACKET '['
  22. #define RIGHT_BRACKET ']'
  23. #define LEFT_PAREN '('
  24. #define RIGHT_PAREN ')'
  25. #define DOUBLE_QUOTE '"'
  26.  
  27. extern    void    add_alias();
  28. extern    char    *get_alias();
  29. extern    char    *expand_alias();
  30. extern    void    execute_alias();
  31. extern    void    list_aliases();
  32. extern    int    mark_alias();
  33. extern    void    delete_alias();
  34. extern    char    *inline_aliases();
  35. extern    char    **match_alias();
  36. extern    char    alias_illegals[];
  37. extern    void    alias();
  38. extern    char    *parse_inline();
  39. extern    char    *MatchingBracket();
  40. extern    void    save_aliases();
  41.  
  42. extern    char    FAR command_line[];
  43.  
  44. struct    ArgPosTag
  45. {
  46.     char *ArgStart;
  47.     int ArgLen;
  48.     char *FirstComp;
  49. };
  50.  
  51. typedef    struct ArgPosTag    ArgPos;
  52.  
  53. /* Alias: structure of each alias entry */
  54. typedef    struct    AliasStru
  55. {
  56.     char    *name;            /* name of alias */
  57.     char    *stuff;            /* what the alias is */
  58.     int    mark;            /* used to prevent recursive aliasing */
  59.     int    global;            /* set if loaded from `global' */
  60.     struct    AliasStru *next;    /* pointer to next alias in list */
  61. }    Alias;
  62.  
  63. #define MAX_CMD_ARGS 5
  64.  
  65. #endif /* _ALIAS_H_ */
  66.